package com.yx.pc.api.service.impl;

import com.yx.pc.api.service.PcTdDiscussService;
import com.yx.system.dao.TdDiscussMapper;
import com.yx.system.entity.TdDiscuss;
import com.yx.system.service.TdDiscussService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PcTdDiscussServiceImpl implements PcTdDiscussService {

    @Autowired
    private TdDiscussMapper tdDiscussMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdDiscussMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdDiscuss record) {
        return tdDiscussMapper.insert(record);
    }

    @Override
    public int insertSelective(TdDiscuss record) {
        return tdDiscussMapper.insertSelective(record);
    }

    @Override
    public TdDiscuss selectByPrimaryKey(Integer id) {
        return tdDiscussMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdDiscuss record) {
        return tdDiscussMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdDiscuss record) {
        return tdDiscussMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdDiscuss> queryList(Map<String, Object> map) {
        return tdDiscussMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdDiscussMapper.queryTotal(map);
    }
}
